<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">

    <navigation-link url="/profile" pname="wangk">
      Your Profile
    </navigation-link>

  </div>

  <template id="temp1">
    <div>
      <a v-bind:href="url" class="nav-link">
        <slot></slot>
      </a>
    </div>
  </template>

  <script src="libs/vue.js"></script>
  <script src="libs/vue-router.js"></script>
  
  <script>
    var navigationLink = {
      template: '#temp1',
      props: ['pname']
    }
    var vm = new Vue({
      el: '#app',
      components: {
        'navigation-link': navigationLink
      }
    })
  </script>
</body>

</html>